package com.fzhucc.modules.lesson.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
* @description /
* @author yyg
* @date 2022-12-13
**/

@Data
public class LessonWithChapterDto implements Serializable {


    @ApiModelProperty(value = "id")
    private Integer id;

    @NotBlank
    @ApiModelProperty(value = "课程名称")
    private String name;

    @ApiModelProperty(value = "课程封面")
    private String coverUrl;

    @ApiModelProperty(value = "课程积分(学习此课程所需积分)")
    private Integer coursePoints;

    @ApiModelProperty(value = "课程上线开始时间")
    private Timestamp starttime;

    @ApiModelProperty(value = "课程上线结束时间")
    private Timestamp endtime;

    @ApiModelProperty(value = "是否不限制上线开始结束时间 默认限制  0不限制(永久)   1限制")
    private Integer isUnlimitedTime;

    @NotNull
    @ApiModelProperty(value = "是否展示")
    private Integer isShow;

    @ApiModelProperty(value = "是否推送首页")
    private Integer isPush;

    @NotBlank
    @ApiModelProperty(value = "课程分类")
    private String type;

    @ApiModelProperty(value = "课程介绍")
    private String introduce;

    @ApiModelProperty(value = "一二级分类")
    private List<LessonFirstChapterDto> lessonFirstChapterList;

    @ApiModelProperty(value = "标签组")
    private List<String> labels;

    @ApiModelProperty(value = "地区划分")
    private String orgArea;

    @ApiModelProperty(value = "排序")
    private Integer sort;

}
